package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 对菜品口味表进行操作
 */
@Mapper
public interface DishFlavorMapper {

    void insertBatch(List<DishFlavor> dishFlavorList);

    void deleteBatchByDishIds(List<Long> ids);

    List<DishFlavor> selectByDishId(Long dishId);

    @Delete("delete from dish_flavor where dish_id=#{dishId}")
    void deleteByDishId(Long dishId);
}
